import * as RenderSetting from "./render_setting.js"
const BlockDefine = RenderSetting.BlockDefine
const StateToBlockDefineMap = RenderSetting.StateToBlockDefineMap



const BlockIDTransfor = {
    "id_register" : [
        "minecraft:wool","minecraft:log","minecraft:log2","minecraft:fence","minecraft:carpet","minecraft:coral",
        "minecraft:stained_glass","minecraft:stained_glass_pane","minecraft:concrete_powder","minecraft:stained_hardened_clay",
        "minecraft:concrete","minecraft:grass","minecraft:leaves","minecraft:leaves2","minecraft:double_wooden_slab",
        "minecraft:wooden_slab","minecraft:wood","minecraft:coral_fan","minecraft:sapling","minecraft:coral_fan_dead",
        "minecraft:red_flower","minecraft:tallgrass","minecraft:coral_block","minecraft:double_plant","minecraft:monster_egg",
        "minecraft:double_stone_block_slab","minecraft:stone_block_slab2","minecraft:stone_block_slab3","minecraft:stonebrick",
        "minecraft:double_stone_block_slab2","minecraft:double_stone_block_slab3","minecraft:double_stone_block_slab4",
        "minecraft:prismarine","minecraft:light_block","minecraft:yellow_flower","minecraft:sandstone","minecraft:anvil",
        "minecraft:dirt","minecraft:quartz_block","minecraft:red_sandstone","minecraft:sand"
    ],
    "id_transfor" : {
        "minecraft:white_wool" : {"block_id":"minecraft:wool","block_data":{"color": "white"}},
        "minecraft:orange_wool" : {"block_id":"minecraft:wool","block_data":{"color": "orange"}},
        "minecraft:magenta_wool" : {"block_id":"minecraft:wool","block_data":{"color": "magenta"}},
        "minecraft:light_blue_wool" : {"block_id":"minecraft:wool","block_data":{"color": "light_blue"}},
        "minecraft:yellow_wool" : {"block_id":"minecraft:wool","block_data":{"color": "yellow"}},
        "minecraft:lime_wool" : {"block_id":"minecraft:wool","block_data":{"color": "lime"}},
        "minecraft:pink_wool" : {"block_id":"minecraft:wool","block_data":{"color": "pink"}},
        "minecraft:gray_wool" : {"block_id":"minecraft:wool","block_data":{"color": "gray"}},
        "minecraft:light_gray_wool" : {"block_id":"minecraft:wool","block_data":{"color": "light_gray"}},
        "minecraft:cyan_wool" : {"block_id":"minecraft:wool","block_data":{"color": "cyan"}},
        "minecraft:purple_wool" : {"block_id":"minecraft:wool","block_data":{"color": "purple"}},
        "minecraft:blue_wool" : {"block_id":"minecraft:wool","block_data":{"color": "blue"}},
        "minecraft:brown_wool" : {"block_id":"minecraft:wool","block_data":{"color": "brown"}},
        "minecraft:green_wool" : {"block_id":"minecraft:wool","block_data":{"color": "green"}},
        "minecraft:red_wool" : {"block_id":"minecraft:wool","block_data":{"color": "red"}},
        "minecraft:black_wool" : {"block_id":"minecraft:wool","block_data":{"color": "black"}},

        "minecraft:oak_log" : {"block_id":"minecraft:log","block_data":{"old_log_type": "oak"}},
        "minecraft:spruce_log" : {"block_id":"minecraft:log","block_data":{"old_log_type": "spruce"}},
        "minecraft:birch_log" : {"block_id":"minecraft:log","block_data":{"old_log_type": "birch"}},
        "minecraft:jungle_log" : {"block_id":"minecraft:log","block_data":{"old_log_type": "jungle"}},
        "minecraft:acacia_log" : {"block_id":"minecraft:log2","block_data":{"new_log_type": "acacia"}},
        "minecraft:dark_oak_log" : {"block_id":"minecraft:log2","block_data":{"new_log_type": "dark_oak"}},

        "minecraft:oak_fence" : {"block_id":"minecraft:fence","block_data":{"old_log_type": "oak"}},
        "minecraft:spruce_fence" : {"block_id":"minecraft:fence","block_data":{"old_log_type": "spruce"}},
        "minecraft:birch_fence" : {"block_id":"minecraft:fence","block_data":{"old_log_type": "birch"}},
        "minecraft:jungle_fence" : {"block_id":"minecraft:fence","block_data":{"old_log_type": "jungle"}},
        "minecraft:acacia_fence" : {"block_id":"minecraft:fence","block_data":{"new_log_type": "acacia"}},
        "minecraft:dark_oak_fence" : {"block_id":"minecraft:fence","block_data":{"new_log_type": "dark_oak"}},

        "minecraft:white_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "white"}},
        "minecraft:orange_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "orange"}},
        "minecraft:magenta_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "magenta"}},
        "minecraft:light_blue_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "light_blue"}},
        "minecraft:yellow_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "yellow"}},
        "minecraft:lime_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "lime"}},
        "minecraft:pink_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "pink"}},
        "minecraft:gray_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "gray"}},
        "minecraft:light_gray_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "light_gray"}},
        "minecraft:cyan_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "cyan"}},
        "minecraft:purple_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "purple"}},
        "minecraft:blue_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "blue"}},
        "minecraft:brown_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "brown"}},
        "minecraft:green_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "green"}},
        "minecraft:red_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "red"}},
        "minecraft:black_carpet" : {"block_id":"minecraft:carpet","block_data":{"color": "black"}},
        
        "minecraft:tube_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "blue","dead_bit": false}},
        "minecraft:brain_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "pink","dead_bit": false}},
        "minecraft:bubble_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "purple","dead_bit": false}},
        "minecraft:fire_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "red","dead_bit": false}},
        "minecraft:horn_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "yellow","dead_bit": false}},
        "minecraft:dead_tube_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "blue","dead_bit": true}},
        "minecraft:dead_brain_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "pink","dead_bit": true}},
        "minecraft:dead_bubble_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "purple","dead_bit": true}},
        "minecraft:dead_fire_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "red","dead_bit": true}},
        "minecraft:dead_horn_coral" : {"block_id":"minecraft:coral","block_data":{"coral_color": "yellow","dead_bit": true}},

        "minecraft:white_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "white"}},
        "minecraft:orange_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "orange"}},
        "minecraft:magenta_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "magenta"}},
        "minecraft:light_blue_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "light_blue"}},
        "minecraft:yellow_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "yellow"}},
        "minecraft:lime_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "lime"}},
        "minecraft:pink_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "pink"}},
        "minecraft:gray_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "gray"}},
        "minecraft:light_gray_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "light_gray"}},
        "minecraft:cyan_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "cyan"}},
        "minecraft:purple_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "purple"}},
        "minecraft:blue_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "blue"}},
        "minecraft:brown_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "brown"}},
        "minecraft:green_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "green"}},
        "minecraft:red_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "red"}},
        "minecraft:black_concrete" : {"block_id":"minecraft:concrete","block_data":{"color": "black"}},
        
        "minecraft:white_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "white"}},
        "minecraft:orange_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "orange"}},
        "minecraft:magenta_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "magenta"}},
        "minecraft:light_blue_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "light_blue"}},
        "minecraft:yellow_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "yellow"}},
        "minecraft:lime_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "lime"}},
        "minecraft:pink_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "pink"}},
        "minecraft:gray_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "gray"}},
        "minecraft:light_gray_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "light_gray"}},
        "minecraft:cyan_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "cyan"}},
        "minecraft:purple_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "purple"}},
        "minecraft:blue_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "blue"}},
        "minecraft:brown_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "brown"}},
        "minecraft:green_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "green"}},
        "minecraft:red_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "red"}},
        "minecraft:black_stained_glass" : {"block_id":"minecraft:stained_glass","block_data":{"color": "black"}},
        
        "minecraft:white_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "white"}},
        "minecraft:orange_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "orange"}},
        "minecraft:magenta_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "magenta"}},
        "minecraft:light_blue_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "light_blue"}},
        "minecraft:yellow_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "yellow"}},
        "minecraft:lime_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "lime"}},
        "minecraft:pink_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "pink"}},
        "minecraft:gray_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "gray"}},
        "minecraft:light_gray_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "light_gray"}},
        "minecraft:cyan_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "cyan"}},
        "minecraft:purple_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "purple"}},
        "minecraft:blue_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "blue"}},
        "minecraft:brown_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "brown"}},
        "minecraft:green_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "green"}},
        "minecraft:red_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "red"}},
        "minecraft:black_stained_glass_pane" : {"block_id":"minecraft:stained_glass_pane","block_data":{"color": "black"}},
        
        "minecraft:white_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "white"}},
        "minecraft:orange_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "orange"}},
        "minecraft:magenta_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "magenta"}},
        "minecraft:light_blue_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "light_blue"}},
        "minecraft:yellow_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "yellow"}},
        "minecraft:lime_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "lime"}},
        "minecraft:pink_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "pink"}},
        "minecraft:gray_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "gray"}},
        "minecraft:light_gray_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "light_gray"}},
        "minecraft:cyan_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "cyan"}},
        "minecraft:purple_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "purple"}},
        "minecraft:blue_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "blue"}},
        "minecraft:brown_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "brown"}},
        "minecraft:green_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "green"}},
        "minecraft:red_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "red"}},
        "minecraft:black_concrete_powder" : {"block_id":"minecraft:concrete_powder","block_data":{"color": "black"}},
        
        "minecraft:white_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "white"}},
        "minecraft:orange_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "orange"}},
        "minecraft:magenta_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "magenta"}},
        "minecraft:light_blue_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "light_blue"}},
        "minecraft:yellow_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "yellow"}},
        "minecraft:lime_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "lime"}},
        "minecraft:pink_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "pink"}},
        "minecraft:gray_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "gray"}},
        "minecraft:light_gray_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "light_gray"}},
        "minecraft:cyan_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "cyan"}},
        "minecraft:purple_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "purple"}},
        "minecraft:blue_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "blue"}},
        "minecraft:brown_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "brown"}},
        "minecraft:green_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "green"}},
        "minecraft:red_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "red"}},
        "minecraft:black_terracotta" : {"block_id":"minecraft:stained_hardened_clay","block_data":{"color": "black"}},

        "minecraft:grass_block" : {"block_id":"minecraft:grass","block_data":{}},
        
        "minecraft:oak_leaves" : {"block_id":"minecraft:leaves","block_data":{"old_leaf_type": "oka","update_bit": false,"persistent_bit": false}},
        "minecraft:spruce_leaves" : {"block_id":"minecraft:leaves","block_data":{"old_leaf_type": "spruce","update_bit": false,"persistent_bit": false}},
        "minecraft:birch_leaves" : {"block_id":"minecraft:leaves","block_data":{"old_leaf_type": "birch","update_bit": false,"persistent_bit": false}},
        "minecraft:jungle_leaves" : {"block_id":"minecraft:leaves","block_data":{"old_leaf_type": "jungle","update_bit": false,"persistent_bit": false}},
        "minecraft:acacia_leaves" : {"block_id":"minecraft:leaves2","block_data":{"old_leaf_type": "acacia","update_bit": false,"persistent_bit": false}},
        "minecraft:dark_oak_leaves" : {"block_id":"minecraft:leaves2","block_data":{"old_leaf_type": "dark_oak","update_bit": false,"persistent_bit": false}},
        
        "minecraft:double_oak_slab" : {"block_id":"minecraft:double_wooden_slab","block_data":{"wood_type": "oka","top_slot_bit": false}},
        "minecraft:double_spruce_slab" : {"block_id":"minecraft:double_wooden_slab","block_data":{"wood_type": "spruce","top_slot_bit": false}},
        "minecraft:double_birch_slab" : {"block_id":"minecraft:double_wooden_slab","block_data":{"wood_type": "birch","top_slot_bit": false}},
        "minecraft:double_jungle_slab" : {"block_id":"minecraft:double_wooden_slab","block_data":{"wood_type": "jungle","top_slot_bit": false}},
        "minecraft:double_acacia_slab" : {"block_id":"minecraft:double_wooden_slab","block_data":{"wood_type": "acacia","top_slot_bit": false}},
        "minecraft:double_dark_oak_slab" : {"block_id":"minecraft:double_wooden_slab","block_data":{"wood_type": "dark_oak","top_slot_bit": false}},
        
        "minecraft:oak_slab" : {"block_id":"minecraft:wooden_slab","block_data":{"wood_type": "oka","top_slot_bit": false}},
        "minecraft:spruce_slab" : {"block_id":"minecraft:wooden_slab","block_data":{"wood_type": "spruce","top_slot_bit": false}},
        "minecraft:birch_slab" : {"block_id":"minecraft:wooden_slab","block_data":{"wood_type": "birch","top_slot_bit": false}},
        "minecraft:jungle_slab" : {"block_id":"minecraft:wooden_slab","block_data":{"wood_type": "jungle","top_slot_bit": false}},
        "minecraft:acacia_slab" : {"block_id":"minecraft:wooden_slab","block_data":{"wood_type": "acacia","top_slot_bit": false}},
        "minecraft:dark_oak_slab" : {"block_id":"minecraft:wooden_slab","block_data":{"wood_type": "dark_oak","top_slot_bit": false}},
        
        "minecraft:oak_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "oka","stripped_bit": false,"pillar_axis": "y"}},
        "minecraft:spruce_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "spruce","stripped_bit": false,"pillar_axis": "y"}},
        "minecraft:birch_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "birch","stripped_bit": false,"pillar_axis": "y"}},
        "minecraft:jungle_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "jungle","stripped_bit": false,"pillar_axis": "y"}},
        "minecraft:acacia_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "acacia","stripped_bit": false,"pillar_axis": "y"}},
        "minecraft:dark_oak_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "dark_oak","stripped_bit": false,"pillar_axis": "y"}},
        "minecraft:stripped_oak_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "oka","stripped_bit": true,"pillar_axis": "y"}},
        "minecraft:stripped_spruce_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "spruce","stripped_bit": true,"pillar_axis": "y"}},
        "minecraft:stripped_birch_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "birch","stripped_bit": true,"pillar_axis": "y"}},
        "minecraft:stripped_jungle_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "jungle","stripped_bit": true,"pillar_axis": "y"}},
        "minecraft:stripped_acacia_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "acacia","stripped_bit": true,"pillar_axis": "y"}},
        "minecraft:stripped_dark_oak_wood" : {"block_id":"minecraft:wood","block_data":{"wood_type": "dark_oak","stripped_bit": true,"pillar_axis": "y"}},

        "minecraft:tube_coral_fan" : {"block_id":"minecraft:coral_fan","block_data":{"coral_color": "blue","coral_fan_direction": 0}},
        "minecraft:brain_coral_fan" : {"block_id":"minecraft:coral_fan","block_data":{"coral_color": "pink","coral_fan_direction": 0}},
        "minecraft:bubble_coral_fan" : {"block_id":"minecraft:coral_fan","block_data":{"coral_color": "purple","coral_fan_direction": 0}},
        "minecraft:fire_coral_fan" : {"block_id":"minecraft:coral_fan","block_data":{"coral_color": "red","coral_fan_direction": 0}},
        "minecraft:horn_coral_fan" : {"block_id":"minecraft:coral_fan","block_data":{"coral_color": "yellow","coral_fan_direction": 0}},

        "minecraft:oak_sapling" : {"block_id":"minecraft:sapling","block_data":{"sapling_type": "oak","age_bit": false}},
        "minecraft:spruce_sapling" : {"block_id":"minecraft:sapling","block_data":{"sapling_type": "spruce","age_bit": false}},
        "minecraft:birch_sapling" : {"block_id":"minecraft:sapling","block_data":{"sapling_type": "birch","age_bit": false}},
        "minecraft:jungle_sapling" : {"block_id":"minecraft:sapling","block_data":{"sapling_type": "jungle","age_bit": false}},
        "minecraft:acacia_sapling" : {"block_id":"minecraft:sapling","block_data":{"sapling_type": "acacia","age_bit": false}},
        "minecraft:dark_oak_sapling" : {"block_id":"minecraft:sapling","block_data":{"sapling_type": "dark_oak","age_bit": false}},
        
        "minecraft:dead_tube_coral_fan" : {"block_id":"minecraft:coral_fan_dead","block_data":{"coral_color": "blue","coral_fan_direction": 0}},
        "minecraft:dead_brain_coral_fan" : {"block_id":"minecraft:coral_fan_dead","block_data":{"coral_color": "pink","coral_fan_direction": 0}},
        "minecraft:dead_bubble_coral_fan" : {"block_id":"minecraft:coral_fan_dead","block_data":{"coral_color": "purple","coral_fan_direction": 0}},
        "minecraft:dead_fire_coral_fan" : {"block_id":"minecraft:coral_fan_dead","block_data":{"coral_color": "red","coral_fan_direction": 0}},
        "minecraft:dead_horn_coral_fan" : {"block_id":"minecraft:coral_fan_dead","block_data":{"coral_color": "yellow","coral_fan_direction": 0}},

        "minecraft:poppy" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "poppy"}},
        "minecraft:orchid" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "orchid"}},
        "minecraft:allium" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "allium"}},
        "minecraft:houstonia" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "houstonia"}},
        "minecraft:tulip_red" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "tulip_red"}},
        "minecraft:tulip_orange" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "tulip_orange"}},
        "minecraft:tulip_white" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "tulip_white"}},
        "minecraft:tulip_pink" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "tulip_pink"}},
        "minecraft:oxeye" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "oxeye"}},
        "minecraft:cornflower" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "cornflower"}},
        "minecraft:lily_of_the_valley" : {"block_id":"minecraft:red_flower","block_data":{"flower_type": "lily_of_the_valley"}},

        "minecraft:short_grass" : {"block_id":"minecraft:tallgrass","block_data":{"tall_grass_type": "tall"}},
        "minecraft:fern" : {"block_id":"minecraft:tallgrass","block_data":{"tall_grass_type": "fern"}},
        
        "minecraft:tube_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "blue","dead_bit": false}},
        "minecraft:brain_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "pink","dead_bit": false}},
        "minecraft:bubble_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "purple","dead_bit": false}},
        "minecraft:fire_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "red","dead_bit": false}},
        "minecraft:horn_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "yellow","dead_bit": false}},
        "minecraft:dead_tube_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "blue","dead_bit": true}},
        "minecraft:dead_brain_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "pink","dead_bit": true}},
        "minecraft:dead_bubble_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "purple","dead_bit": true}},
        "minecraft:dead_fire_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "red","dead_bit": true}},
        "minecraft:dead_horn_coral_block" : {"block_id":"minecraft:coral_block","block_data":{"coral_color": "yellow","dead_bit": true}},

        "minecraft:sunflower": {"block_id":"minecraft:double_plant","block_data":{"double_plant_type": "sunflower","upper_block_bit": false}},
        "minecraft:lilac": {"block_id":"minecraft:double_plant","block_data":{"double_plant_type": "syringa","upper_block_bit": false}},
        "minecraft:tall_grass": {"block_id":"minecraft:double_plant","block_data":{"double_plant_type": "grass","upper_block_bit": false}},
        "minecraft:large_fern": {"block_id":"minecraft:double_plant","block_data":{"double_plant_type": "fern","upper_block_bit": false}},
        "minecraft:rose_bush": {"block_id":"minecraft:double_plant","block_data":{"double_plant_type": "rose","upper_block_bit": false}},
        "minecraft:peony": {"block_id":"minecraft:double_plant","block_data":{"double_plant_type": "paeonia","upper_block_bit": false}},

        "minecraft:infested_stone": {"block_id":"minecraft:monster_egg","block_data":{"monster_egg_stone_type": "stone"}},
        "minecraft:infested_cobblestone": {"block_id":"minecraft:monster_egg","block_data":{"monster_egg_stone_type": "cobblestone"}},
        "minecraft:infested_stone_bricks": {"block_id":"minecraft:monster_egg","block_data":{"monster_egg_stone_type": "stone_brick"}},
        "minecraft:infested_mossy_stone_bricks": {"block_id":"minecraft:monster_egg","block_data":{"monster_egg_stone_type": "mossy_stone_brick"}},
        "minecraft:infested_cracked_stone_bricks": {"block_id":"minecraft:monster_egg","block_data":{"monster_egg_stone_type": "cracked_stone_brick"}},
        "minecraft:infested_chiseled_stone_bricks": {"block_id":"minecraft:monster_egg","block_data":{"monster_egg_stone_type": "chiseled_stone_brick"}},

        "minecraft:smooth_stone_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "smooth_stone","top_slot_bit": false}},
        "minecraft:sandstone_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "sandstone","top_slot_bit": false}},
        "minecraft:petrified_oak_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "wood","top_slot_bit": false}},
        "minecraft:cobblestone_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "cobblestone","top_slot_bit": false}},
        "minecraft:brick_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "brick","top_slot_bit": false}},
        "minecraft:stone_brick_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "stone_brick","top_slot_bit": false}},
        "minecraft:quartz_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "quartz","top_slot_bit": false}},
        "minecraft:nether_brick_double_slab":{"block_id":"minecraft:double_stone_block_slab","block_data":{"stone_slab_type": "nether_brick","top_slot_bit": false}},
        
        "minecraft:red_sandstone_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "red_sandstone","top_slot_bit": false}},
        "minecraft:purpur_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "purpur","top_slot_bit": false}},
        "minecraft:prismarine_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "prismarine_rough","top_slot_bit": false}},
        "minecraft:dark_prismarine_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "prismarine_dark","top_slot_bit": false}},
        "minecraft:prismarine_brick_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "prismarine_brick","top_slot_bit": false}},
        "minecraft:mossy_cobblestone_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "mossy_cobblestone","top_slot_bit": false}},
        "minecraft:smooth_sandstone_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "smooth_sandstone","top_slot_bit": false}},
        "minecraft:red_nether_brick_slab":{"block_id":"minecraft:stone_block_slab2","block_data":{"stone_slab_type_2": "red_nether_brick","top_slot_bit": false}},
        
        "minecraft:end_stone_brick_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "end_stone_brick","top_slot_bit": false}},
        "minecraft:smooth_red_sandstone_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "smooth_red_sandstone","top_slot_bit": false}},
        "minecraft:polished_andesite_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "polished_andesite","top_slot_bit": false}},
        "minecraft:andesite_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "andesite","top_slot_bit": false}},
        "minecraft:diorite_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "diorite","top_slot_bit": false}},
        "minecraft:polished_diorite_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "polished_diorite","top_slot_bit": false}},
        "minecraft:granite_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "granite","top_slot_bit": false}},
        "minecraft:polished_granite_slab":{"block_id":"minecraft:stone_block_slab3","block_data":{"stone_slab_type_3": "polished_granite","top_slot_bit": false}},

        "minecraft:stone_bricks":{"block_id":"minecraft:stonebrick","block_data":{"stone_brick_type": "default"}},
        "minecraft:mossy_stone_bricks":{"block_id":"minecraft:stonebrick","block_data":{"stone_brick_type": "mossy"}},
        "minecraft:cracked_stone_bricks":{"block_id":"minecraft:stonebrick","block_data":{"stone_brick_type": "cracked"}},
        "minecraft:chiseled_stone_bricks":{"block_id":"minecraft:stonebrick","block_data":{"stone_brick_type": "chiseled"}},

        "minecraft:red_sandstone_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "red_sandstone","top_slot_bit": false}},
        "minecraft:purpur_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "purpur","top_slot_bit": false}},
        "minecraft:prismarine_rough_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "prismarine_rough","top_slot_bit": false}},
        "minecraft:prismarine_dark_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "prismarine_dark","top_slot_bit": false}},
        "minecraft:prismarine_brick_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "prismarine_brick","top_slot_bit": false}},
        "minecraft:mossy_cobblestone_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "mossy_cobblestone","top_slot_bit": false}},
        "minecraft:smooth_sandstone_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "smooth_sandstone","top_slot_bit": false}},
        "minecraft:red_nether_brick_double_slab":{"block_id":"minecraft:double_stone_block_slab2","block_data":{"stone_slab_type_2": "red_nether_brick","top_slot_bit": false}},

        "minecraft:end_stone_brick_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "end_stone_brick","top_slot_bit": false}},
        "minecraft:smooth_red_sandstone_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "smooth_red_sandstone","top_slot_bit": false}},
        "minecraft:polished_andesite_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "polished_andesite","top_slot_bit": false}},
        "minecraft:andesite_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "andesite","top_slot_bit": false}},
        "minecraft:diorite_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "diorite","top_slot_bit": false}},
        "minecraft:polished_diorite_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "polished_diorite","top_slot_bit": false}},
        "minecraft:granite_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "granite","top_slot_bit": false}},
        "minecraft:polished_granite_double_slab":{"block_id":"minecraft:double_stone_block_slab3","block_data":{"stone_slab_type_3": "polished_granite","top_slot_bit": false}},
        
        "minecraft:mossy_stone_brick_double_slab":{"block_id":"minecraft:double_stone_block_slab4","block_data":{"stone_slab_type_4": "mossy_stone_brick","top_slot_bit": false}},
        "minecraft:smooth_quartz_double_slab":{"block_id":"minecraft:double_stone_block_slab4","block_data":{"stone_slab_type_4": "smooth_quartz","top_slot_bit": false}},
        "minecraft:stone_double_slab":{"block_id":"minecraft:double_stone_block_slab4","block_data":{"stone_slab_type_4": "stone","top_slot_bit": false}},
        "minecraft:cut_sandstone_double_slab":{"block_id":"minecraft:double_stone_block_slab4","block_data":{"stone_slab_type_4": "cut_sandstone","top_slot_bit": false}},
        "minecraft:cut_red_sandstone_double_slab":{"block_id":"minecraft:double_stone_block_slab4","block_data":{"stone_slab_type_4": "cut_red_sandstone","top_slot_bit": false}},

        "minecraft:prismarine":{"block_id":"minecraft:prismarine","block_data":{"prismarine_block_type": "default"}},
        "minecraft:dark_prismarine":{"block_id":"minecraft:prismarine","block_data":{"prismarine_block_type": "dark"}},
        "minecraft:prismarine_bricks":{"block_id":"minecraft:prismarine","block_data":{"prismarine_block_type": "bricks"}},


        "minecraft:light_block_0": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 0}},
        "minecraft:light_block_1": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 1}},
        "minecraft:light_block_2": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 2}},
        "minecraft:light_block_3": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 3}},
        "minecraft:light_block_4": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 4}},
        "minecraft:light_block_5": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 5}},
        "minecraft:light_block_6": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 6}},
        "minecraft:light_block_7": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 7}},
        "minecraft:light_block_8": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 8}},
        "minecraft:light_block_9": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 9}},
        "minecraft:light_block_10": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 10}},
        "minecraft:light_block_11": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 11}},
        "minecraft:light_block_12": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 12}},
        "minecraft:light_block_13": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 13}},
        "minecraft:light_block_14": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 14}},
        "minecraft:light_block_15": {"block_id":"minecraft:light_block","block_data":{"block_light_level": 15}},
        
        "minecraft:dandelion": {"block_id":"minecraft:yellow_flower","block_data":{}},

        "minecraft:sandstone": {"block_id":"minecraft:sandstone","block_data":{"sand_stone_type": "default"}},
        "minecraft:chiseled_sandstone": {"block_id":"minecraft:sandstone","block_data":{"sand_stone_type": "heiroglyphs"}},
        "minecraft:cut_sandstone": {"block_id":"minecraft:sandstone","block_data":{"sand_stone_type": "cut"}},
        "minecraft:smooth_sandstone": {"block_id":"minecraft:sandstone","block_data":{"sand_stone_type": "smooth"}},


        "minecraft:anvil": {"block_id":"minecraft:anvil","block_data":{"damage":"undamaged","direction":0}},
        "minecraft:chipped_anvil": {"block_id":"minecraft:anvil","block_data":{"damage":"slightly_damaged","direction":0}},
        "minecraft:damaged_anvil": {"block_id":"minecraft:anvil","block_data":{"damage":"very_damaged","direction":0}},
        "minecraft:deprecated_anvil": {"block_id":"minecraft:anvil","block_data":{"damage":"broken","direction":0}},
        
        "minecraft:dirt": {"block_id":"minecraft:dirt","block_data":{"dirt_type": "normal"}},
        "minecraft:coarse_dirt": {"block_id":"minecraft:dirt","block_data":{"dirt_type": "coarse"}},

        "minecraft:quartz_block": {"block_id":"minecraft:quartz_block","block_data":{"chisel_type": "default","pillar_axis": "y"}},
        "minecraft:chiseled_quartz_block": {"block_id":"minecraft:quartz_block","block_data":{"chisel_type": "chiseled","pillar_axis": "y"}},
        "minecraft:quartz_pillar": {"block_id":"minecraft:quartz_block","block_data":{"chisel_type": "lines","pillar_axis": "y"}},
        "minecraft:smooth_quartz": {"block_id":"minecraft:quartz_block","block_data":{"chisel_type": "smooth","pillar_axis": "y"}},

        "minecraft:red_sandstone": {"block_id":"minecraft:red_sandstone","block_data":{"sand_stone_type": "default"}},
        "minecraft:chiseled_red_sandstone": {"block_id":"minecraft:red_sandstone","block_data":{"sand_stone_type": "heiroglyphs"}},
        "minecraft:cut_red_sandstone": {"block_id":"minecraft:red_sandstone","block_data":{"sand_stone_type": "cut"}},
        "minecraft:smooth_red_sandstone": {"block_id":"minecraft:red_sandstone","block_data":{"sand_stone_type": "smooth"}},
        
        "minecraft:sand": {"block_id":"minecraft:sand","block_data":{"sand_type": "normal"}},
        "minecraft:red_sand": {"block_id":"minecraft:sand","block_data":{"sand_type": "red"}}
    }
}

export function QueryBlockRender(Block) {
    let Block_ID = Block.name
    if (Object.keys(Block.states).length && Block.name in StateToBlockDefineMap) {
        const state = Object.keys(StateToBlockDefineMap[Block.name])[0]
        const states_dict = StateToBlockDefineMap[Block.name][state]
        if (state in Block.states) Block_ID = states_dict[`${Block.states[state]}`]
    }

    if (Block_ID in BlockDefine) return BlockDefine[Block_ID]
    else {console.log(`${Block_ID} not found`) ; return null}
}